package com.yanqu.road.entity.activity.rankunionwar.data;

import com.yanqu.road.entity.DataObject;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class RankUnionWarUserData extends DataObject {

    private int activityId;

    private long userId;

    //通关次数
    private int passTimes;

    //宝库开到第几层
    private int floor;

    //大奖位置
    private int bigRewardPosition;

    //开启的物品一栏
    private Map<Integer,String> floorOpenMap;

    //观战领奖
    private List<Integer> lookRewardMapList = new ArrayList<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getFloor() {
        return floor;
    }

    public void setFloor(int floor) {
        if(floor != this.floor){
            this.floor = floor;
        }
    }

    public int getPassTimes() {
        return passTimes;
    }

    public void setPassTimes(int passTimes) {
        if(passTimes != this.passTimes){
            this.passTimes = passTimes;
            setUpdateOption();
        }
    }

    public Map<Integer, String> getFloorOpenMap() {
        return floorOpenMap;
    }

    public void setFloorOpenMap(Map<Integer, String> floorOpenMap) {
        this.floorOpenMap = floorOpenMap;
        setUpdateOption();
    }

    public int getBigRewardPosition() {
        return bigRewardPosition;
    }

    public void setBigRewardPosition(int bigRewardPosition) {
        if(bigRewardPosition != this.bigRewardPosition){
            this.bigRewardPosition = bigRewardPosition;
            setUpdateOption();
        }
    }

    public List<Integer> getLookRewardMapList() {
        return lookRewardMapList;
    }

    public void setLookRewardMapList(List<Integer> lookRewardMapList) {
        this.lookRewardMapList = lookRewardMapList;
        setUpdateOption();
    }
}
